package com.luo.partner.dao.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TabUsrsExample implements Serializable {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private static final long serialVersionUID = 1L;

    public TabUsrsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria implements Serializable {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUsrsIdIsNull() {
            addCriterion("usrs_id is null");
            return (Criteria) this;
        }

        public Criteria andUsrsIdIsNotNull() {
            addCriterion("usrs_id is not null");
            return (Criteria) this;
        }

        public Criteria andUsrsIdEqualTo(Long value) {
            addCriterion("usrs_id =", value, "usrsId");
            return (Criteria) this;
        }

        public Criteria andUsrsIdNotEqualTo(Long value) {
            addCriterion("usrs_id <>", value, "usrsId");
            return (Criteria) this;
        }

        public Criteria andUsrsIdGreaterThan(Long value) {
            addCriterion("usrs_id >", value, "usrsId");
            return (Criteria) this;
        }

        public Criteria andUsrsIdGreaterThanOrEqualTo(Long value) {
            addCriterion("usrs_id >=", value, "usrsId");
            return (Criteria) this;
        }

        public Criteria andUsrsIdLessThan(Long value) {
            addCriterion("usrs_id <", value, "usrsId");
            return (Criteria) this;
        }

        public Criteria andUsrsIdLessThanOrEqualTo(Long value) {
            addCriterion("usrs_id <=", value, "usrsId");
            return (Criteria) this;
        }

        public Criteria andUsrsIdIn(List<Long> values) {
            addCriterion("usrs_id in", values, "usrsId");
            return (Criteria) this;
        }

        public Criteria andUsrsIdNotIn(List<Long> values) {
            addCriterion("usrs_id not in", values, "usrsId");
            return (Criteria) this;
        }

        public Criteria andUsrsIdBetween(Long value1, Long value2) {
            addCriterion("usrs_id between", value1, value2, "usrsId");
            return (Criteria) this;
        }

        public Criteria andUsrsIdNotBetween(Long value1, Long value2) {
            addCriterion("usrs_id not between", value1, value2, "usrsId");
            return (Criteria) this;
        }

        public Criteria andTelIsNull() {
            addCriterion("tel is null");
            return (Criteria) this;
        }

        public Criteria andTelIsNotNull() {
            addCriterion("tel is not null");
            return (Criteria) this;
        }

        public Criteria andTelEqualTo(String value) {
            addCriterion("tel =", value, "tel");
            return (Criteria) this;
        }

        public Criteria andTelNotEqualTo(String value) {
            addCriterion("tel <>", value, "tel");
            return (Criteria) this;
        }

        public Criteria andTelGreaterThan(String value) {
            addCriterion("tel >", value, "tel");
            return (Criteria) this;
        }

        public Criteria andTelGreaterThanOrEqualTo(String value) {
            addCriterion("tel >=", value, "tel");
            return (Criteria) this;
        }

        public Criteria andTelLessThan(String value) {
            addCriterion("tel <", value, "tel");
            return (Criteria) this;
        }

        public Criteria andTelLessThanOrEqualTo(String value) {
            addCriterion("tel <=", value, "tel");
            return (Criteria) this;
        }

        public Criteria andTelLike(String value) {
            addCriterion("tel like", value, "tel");
            return (Criteria) this;
        }

        public Criteria andTelNotLike(String value) {
            addCriterion("tel not like", value, "tel");
            return (Criteria) this;
        }

        public Criteria andTelIn(List<String> values) {
            addCriterion("tel in", values, "tel");
            return (Criteria) this;
        }

        public Criteria andTelNotIn(List<String> values) {
            addCriterion("tel not in", values, "tel");
            return (Criteria) this;
        }

        public Criteria andTelBetween(String value1, String value2) {
            addCriterion("tel between", value1, value2, "tel");
            return (Criteria) this;
        }

        public Criteria andTelNotBetween(String value1, String value2) {
            addCriterion("tel not between", value1, value2, "tel");
            return (Criteria) this;
        }

        public Criteria andNicknameIsNull() {
            addCriterion("nickname is null");
            return (Criteria) this;
        }

        public Criteria andNicknameIsNotNull() {
            addCriterion("nickname is not null");
            return (Criteria) this;
        }

        public Criteria andNicknameEqualTo(String value) {
            addCriterion("nickname =", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameNotEqualTo(String value) {
            addCriterion("nickname <>", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameGreaterThan(String value) {
            addCriterion("nickname >", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameGreaterThanOrEqualTo(String value) {
            addCriterion("nickname >=", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameLessThan(String value) {
            addCriterion("nickname <", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameLessThanOrEqualTo(String value) {
            addCriterion("nickname <=", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameLike(String value) {
            addCriterion("nickname like", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameNotLike(String value) {
            addCriterion("nickname not like", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameIn(List<String> values) {
            addCriterion("nickname in", values, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameNotIn(List<String> values) {
            addCriterion("nickname not in", values, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameBetween(String value1, String value2) {
            addCriterion("nickname between", value1, value2, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameNotBetween(String value1, String value2) {
            addCriterion("nickname not between", value1, value2, "nickname");
            return (Criteria) this;
        }

        public Criteria andAccountIsNull() {
            addCriterion("account is null");
            return (Criteria) this;
        }

        public Criteria andAccountIsNotNull() {
            addCriterion("account is not null");
            return (Criteria) this;
        }

        public Criteria andAccountEqualTo(String value) {
            addCriterion("account =", value, "account");
            return (Criteria) this;
        }

        public Criteria andAccountNotEqualTo(String value) {
            addCriterion("account <>", value, "account");
            return (Criteria) this;
        }

        public Criteria andAccountGreaterThan(String value) {
            addCriterion("account >", value, "account");
            return (Criteria) this;
        }

        public Criteria andAccountGreaterThanOrEqualTo(String value) {
            addCriterion("account >=", value, "account");
            return (Criteria) this;
        }

        public Criteria andAccountLessThan(String value) {
            addCriterion("account <", value, "account");
            return (Criteria) this;
        }

        public Criteria andAccountLessThanOrEqualTo(String value) {
            addCriterion("account <=", value, "account");
            return (Criteria) this;
        }

        public Criteria andAccountLike(String value) {
            addCriterion("account like", value, "account");
            return (Criteria) this;
        }

        public Criteria andAccountNotLike(String value) {
            addCriterion("account not like", value, "account");
            return (Criteria) this;
        }

        public Criteria andAccountIn(List<String> values) {
            addCriterion("account in", values, "account");
            return (Criteria) this;
        }

        public Criteria andAccountNotIn(List<String> values) {
            addCriterion("account not in", values, "account");
            return (Criteria) this;
        }

        public Criteria andAccountBetween(String value1, String value2) {
            addCriterion("account between", value1, value2, "account");
            return (Criteria) this;
        }

        public Criteria andAccountNotBetween(String value1, String value2) {
            addCriterion("account not between", value1, value2, "account");
            return (Criteria) this;
        }

        public Criteria andPasswordIsNull() {
            addCriterion("password is null");
            return (Criteria) this;
        }

        public Criteria andPasswordIsNotNull() {
            addCriterion("password is not null");
            return (Criteria) this;
        }

        public Criteria andPasswordEqualTo(String value) {
            addCriterion("password =", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordNotEqualTo(String value) {
            addCriterion("password <>", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordGreaterThan(String value) {
            addCriterion("password >", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordGreaterThanOrEqualTo(String value) {
            addCriterion("password >=", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordLessThan(String value) {
            addCriterion("password <", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordLessThanOrEqualTo(String value) {
            addCriterion("password <=", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordLike(String value) {
            addCriterion("password like", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordNotLike(String value) {
            addCriterion("password not like", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordIn(List<String> values) {
            addCriterion("password in", values, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordNotIn(List<String> values) {
            addCriterion("password not in", values, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordBetween(String value1, String value2) {
            addCriterion("password between", value1, value2, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordNotBetween(String value1, String value2) {
            addCriterion("password not between", value1, value2, "password");
            return (Criteria) this;
        }

        public Criteria andTotalRechargeIsNull() {
            addCriterion("total_recharge is null");
            return (Criteria) this;
        }

        public Criteria andTotalRechargeIsNotNull() {
            addCriterion("total_recharge is not null");
            return (Criteria) this;
        }

        public Criteria andTotalRechargeEqualTo(BigDecimal value) {
            addCriterion("total_recharge =", value, "totalRecharge");
            return (Criteria) this;
        }

        public Criteria andTotalRechargeNotEqualTo(BigDecimal value) {
            addCriterion("total_recharge <>", value, "totalRecharge");
            return (Criteria) this;
        }

        public Criteria andTotalRechargeGreaterThan(BigDecimal value) {
            addCriterion("total_recharge >", value, "totalRecharge");
            return (Criteria) this;
        }

        public Criteria andTotalRechargeGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("total_recharge >=", value, "totalRecharge");
            return (Criteria) this;
        }

        public Criteria andTotalRechargeLessThan(BigDecimal value) {
            addCriterion("total_recharge <", value, "totalRecharge");
            return (Criteria) this;
        }

        public Criteria andTotalRechargeLessThanOrEqualTo(BigDecimal value) {
            addCriterion("total_recharge <=", value, "totalRecharge");
            return (Criteria) this;
        }

        public Criteria andTotalRechargeIn(List<BigDecimal> values) {
            addCriterion("total_recharge in", values, "totalRecharge");
            return (Criteria) this;
        }

        public Criteria andTotalRechargeNotIn(List<BigDecimal> values) {
            addCriterion("total_recharge not in", values, "totalRecharge");
            return (Criteria) this;
        }

        public Criteria andTotalRechargeBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("total_recharge between", value1, value2, "totalRecharge");
            return (Criteria) this;
        }

        public Criteria andTotalRechargeNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("total_recharge not between", value1, value2, "totalRecharge");
            return (Criteria) this;
        }

        public Criteria andUnSettlementRechargeIsNull() {
            addCriterion("un_settlement_recharge is null");
            return (Criteria) this;
        }

        public Criteria andUnSettlementRechargeIsNotNull() {
            addCriterion("un_settlement_recharge is not null");
            return (Criteria) this;
        }

        public Criteria andUnSettlementRechargeEqualTo(BigDecimal value) {
            addCriterion("un_settlement_recharge =", value, "unSettlementRecharge");
            return (Criteria) this;
        }

        public Criteria andUnSettlementRechargeNotEqualTo(BigDecimal value) {
            addCriterion("un_settlement_recharge <>", value, "unSettlementRecharge");
            return (Criteria) this;
        }

        public Criteria andUnSettlementRechargeGreaterThan(BigDecimal value) {
            addCriterion("un_settlement_recharge >", value, "unSettlementRecharge");
            return (Criteria) this;
        }

        public Criteria andUnSettlementRechargeGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("un_settlement_recharge >=", value, "unSettlementRecharge");
            return (Criteria) this;
        }

        public Criteria andUnSettlementRechargeLessThan(BigDecimal value) {
            addCriterion("un_settlement_recharge <", value, "unSettlementRecharge");
            return (Criteria) this;
        }

        public Criteria andUnSettlementRechargeLessThanOrEqualTo(BigDecimal value) {
            addCriterion("un_settlement_recharge <=", value, "unSettlementRecharge");
            return (Criteria) this;
        }

        public Criteria andUnSettlementRechargeIn(List<BigDecimal> values) {
            addCriterion("un_settlement_recharge in", values, "unSettlementRecharge");
            return (Criteria) this;
        }

        public Criteria andUnSettlementRechargeNotIn(List<BigDecimal> values) {
            addCriterion("un_settlement_recharge not in", values, "unSettlementRecharge");
            return (Criteria) this;
        }

        public Criteria andUnSettlementRechargeBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("un_settlement_recharge between", value1, value2, "unSettlementRecharge");
            return (Criteria) this;
        }

        public Criteria andUnSettlementRechargeNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("un_settlement_recharge not between", value1, value2, "unSettlementRecharge");
            return (Criteria) this;
        }

        public Criteria andSettlementRechargeIsNull() {
            addCriterion("settlement_recharge is null");
            return (Criteria) this;
        }

        public Criteria andSettlementRechargeIsNotNull() {
            addCriterion("settlement_recharge is not null");
            return (Criteria) this;
        }

        public Criteria andSettlementRechargeEqualTo(BigDecimal value) {
            addCriterion("settlement_recharge =", value, "settlementRecharge");
            return (Criteria) this;
        }

        public Criteria andSettlementRechargeNotEqualTo(BigDecimal value) {
            addCriterion("settlement_recharge <>", value, "settlementRecharge");
            return (Criteria) this;
        }

        public Criteria andSettlementRechargeGreaterThan(BigDecimal value) {
            addCriterion("settlement_recharge >", value, "settlementRecharge");
            return (Criteria) this;
        }

        public Criteria andSettlementRechargeGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("settlement_recharge >=", value, "settlementRecharge");
            return (Criteria) this;
        }

        public Criteria andSettlementRechargeLessThan(BigDecimal value) {
            addCriterion("settlement_recharge <", value, "settlementRecharge");
            return (Criteria) this;
        }

        public Criteria andSettlementRechargeLessThanOrEqualTo(BigDecimal value) {
            addCriterion("settlement_recharge <=", value, "settlementRecharge");
            return (Criteria) this;
        }

        public Criteria andSettlementRechargeIn(List<BigDecimal> values) {
            addCriterion("settlement_recharge in", values, "settlementRecharge");
            return (Criteria) this;
        }

        public Criteria andSettlementRechargeNotIn(List<BigDecimal> values) {
            addCriterion("settlement_recharge not in", values, "settlementRecharge");
            return (Criteria) this;
        }

        public Criteria andSettlementRechargeBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("settlement_recharge between", value1, value2, "settlementRecharge");
            return (Criteria) this;
        }

        public Criteria andSettlementRechargeNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("settlement_recharge not between", value1, value2, "settlementRecharge");
            return (Criteria) this;
        }

        public Criteria andInviteUserIdIsNull() {
            addCriterion("invite_user_id is null");
            return (Criteria) this;
        }

        public Criteria andInviteUserIdIsNotNull() {
            addCriterion("invite_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andInviteUserIdEqualTo(Long value) {
            addCriterion("invite_user_id =", value, "inviteUserId");
            return (Criteria) this;
        }

        public Criteria andInviteUserIdNotEqualTo(Long value) {
            addCriterion("invite_user_id <>", value, "inviteUserId");
            return (Criteria) this;
        }

        public Criteria andInviteUserIdGreaterThan(Long value) {
            addCriterion("invite_user_id >", value, "inviteUserId");
            return (Criteria) this;
        }

        public Criteria andInviteUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("invite_user_id >=", value, "inviteUserId");
            return (Criteria) this;
        }

        public Criteria andInviteUserIdLessThan(Long value) {
            addCriterion("invite_user_id <", value, "inviteUserId");
            return (Criteria) this;
        }

        public Criteria andInviteUserIdLessThanOrEqualTo(Long value) {
            addCriterion("invite_user_id <=", value, "inviteUserId");
            return (Criteria) this;
        }

        public Criteria andInviteUserIdIn(List<Long> values) {
            addCriterion("invite_user_id in", values, "inviteUserId");
            return (Criteria) this;
        }

        public Criteria andInviteUserIdNotIn(List<Long> values) {
            addCriterion("invite_user_id not in", values, "inviteUserId");
            return (Criteria) this;
        }

        public Criteria andInviteUserIdBetween(Long value1, Long value2) {
            addCriterion("invite_user_id between", value1, value2, "inviteUserId");
            return (Criteria) this;
        }

        public Criteria andInviteUserIdNotBetween(Long value1, Long value2) {
            addCriterion("invite_user_id not between", value1, value2, "inviteUserId");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria implements Serializable {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion implements Serializable {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}